package cc.rboot.topic.annotation;

import cc.rboot.topic.core.IMessageTopic;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Component
public @interface MessageConsumer {
    Class<? extends IMessageTopic> topic();

    String name();
}
